package cn.bonoon.kernel.menus;

import cn.bonoon.kernel.util.StringHelper;

class LoginPageDefinitionImpl implements LoginPageDefinition{
	
	private String name;
	
	private String logo;
	
	private String foot;
	
	private String layout;
	
	private ModuleDefinition parent;

	public void init(ModuleDefinition parent, StyleDefinitionImpl style){
		this.parent = parent;
		this.name = StringHelper.get(name, style.getName());
		this.logo = StringHelper.get(logo, style.getLogo());
		this.foot = StringHelper.get(foot, style.getFoot());
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getFoot() {
		return foot;
	}

	public void setFoot(String foot) {
		this.foot = foot;
	}

	public String getLayout() {
		return layout;
	}

	public void setLayout(String layout) {
		this.layout = layout;
	}

	public ModuleDefinition getParent() {
		return parent;
	}
}
